package com.zyt.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * create table d_category(
 *   category_id int(10) primary key auto_increment,-- 类别的编号
 *   parent_id int(10),-- 类别的父级类别编号
 *   category_name varchar(20) not null-- 类别的名称
 * );
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Category {
    private Integer categoryid;
    private String categoryname;
    private Integer booknum;
    private List<Category> child;

}
